<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Embroidermodder: extern/libembroidery/src/formats/format_ofm.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js", "TeX/AMSmath.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="logo_embroidermodder_2_0.png"/></td>
  <td id="projectalign">
   <div id="projectname">Embroidermodder<span id="projectnumber">&#160;2.0.0-alpha4</span>
   </div>
   <div id="projectbrief">A free and open source software for machine embroidery</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('format__ofm_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">format_ofm.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &quot;<a class="el" href="embroidery__internal_8h_source.html">../embroidery_internal.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad122fd27abac7102ae75f82d8e578129"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#ad122fd27abac7102ae75f82d8e578129">ofmReadLibrary</a> (FILE *file)</td></tr>
<tr class="separator:ad122fd27abac7102ae75f82d8e578129"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf0a0c0b2886b4e4d2636e85044f78b6"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#aaf0a0c0b2886b4e4d2636e85044f78b6">ofmReadClass</a> (FILE *file)</td></tr>
<tr class="separator:aaf0a0c0b2886b4e4d2636e85044f78b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339d0ee5bedac508e9c90cf82c2c97cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#a339d0ee5bedac508e9c90cf82c2c97cc">ofmReadBlockHeader</a> (FILE *file)</td></tr>
<tr class="separator:a339d0ee5bedac508e9c90cf82c2c97cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f785b4dddf30ee05e337df513452f4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#a2f785b4dddf30ee05e337df513452f4a">ofmReadColorChange</a> (FILE *file, <a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern)</td></tr>
<tr class="separator:a2f785b4dddf30ee05e337df513452f4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcdfe4c9bb0e551b1fa20ed9bc698bf4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#afcdfe4c9bb0e551b1fa20ed9bc698bf4">ofmReadThreads</a> (FILE *file, <a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *p)</td></tr>
<tr class="separator:afcdfe4c9bb0e551b1fa20ed9bc698bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97fa7e0123b3260800c7aec2e2168cab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="embroidery_8h.html#a2082be9aabfb541dff1825c4ca6a05cd">EmbReal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#a97fa7e0123b3260800c7aec2e2168cab">ofmDecode</a> (unsigned char b1, unsigned char b2)</td></tr>
<tr class="separator:a97fa7e0123b3260800c7aec2e2168cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84260a236c94ae0a750864a2a2e0b09c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#a84260a236c94ae0a750864a2a2e0b09c">ofmReadExpanded</a> (FILE *file, <a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *p)</td></tr>
<tr class="separator:a84260a236c94ae0a750864a2a2e0b09c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5446234f9b586cdc44c004dda2b0e56"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#ac5446234f9b586cdc44c004dda2b0e56">readOfm</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, FILE *fileCompound)</td></tr>
<tr class="separator:ac5446234f9b586cdc44c004dda2b0e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25920ff259a61a23d0067b6007020a08"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="format__ofm_8c.html#a25920ff259a61a23d0067b6007020a08">writeOfm</a> (<a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *pattern, FILE *file)</td></tr>
<tr class="separator:a25920ff259a61a23d0067b6007020a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a97fa7e0123b3260800c7aec2e2168cab" name="a97fa7e0123b3260800c7aec2e2168cab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97fa7e0123b3260800c7aec2e2168cab">&#9670;&nbsp;</a></span>ofmDecode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="embroidery_8h.html#a2082be9aabfb541dff1825c4ca6a05cd">EmbReal</a> ofmDecode </td>
          <td>(</td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>b1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>b2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a339d0ee5bedac508e9c90cf82c2c97cc" name="a339d0ee5bedac508e9c90cf82c2c97cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a339d0ee5bedac508e9c90cf82c2c97cc">&#9670;&nbsp;</a></span>ofmReadBlockHeader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ofmReadBlockHeader </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aaf0a0c0b2886b4e4d2636e85044f78b6" name="aaf0a0c0b2886b4e4d2636e85044f78b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf0a0c0b2886b4e4d2636e85044f78b6">&#9670;&nbsp;</a></span>ofmReadClass()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int ofmReadClass </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2f785b4dddf30ee05e337df513452f4a" name="a2f785b4dddf30ee05e337df513452f4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f785b4dddf30ee05e337df513452f4a">&#9670;&nbsp;</a></span>ofmReadColorChange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ofmReadColorChange </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a84260a236c94ae0a750864a2a2e0b09c" name="a84260a236c94ae0a750864a2a2e0b09c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84260a236c94ae0a750864a2a2e0b09c">&#9670;&nbsp;</a></span>ofmReadExpanded()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ofmReadExpanded </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad122fd27abac7102ae75f82d8e578129" name="ad122fd27abac7102ae75f82d8e578129"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad122fd27abac7102ae75f82d8e578129">&#9670;&nbsp;</a></span>ofmReadLibrary()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * ofmReadLibrary </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<h2><a class="anchor" id="melco-ofm-format"></a>
Melco Embroidery Format (.ofm)</h2>
<p ><a id="ad122fd27abac7102ae75f82d8e578129_a114_ofm" name="ad122fd27abac7102ae75f82d8e578129_a114_ofm"></a> <a id="ad122fd27abac7102ae75f82d8e578129_a115_Melco" name="ad122fd27abac7102ae75f82d8e578129_a115_Melco"></a></p>
<p >Stitch Only Format. </p>

</div>
</div>
<a id="afcdfe4c9bb0e551b1fa20ed9bc698bf4" name="afcdfe4c9bb0e551b1fa20ed9bc698bf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcdfe4c9bb0e551b1fa20ed9bc698bf4">&#9670;&nbsp;</a></span>ofmReadThreads()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ofmReadThreads </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac5446234f9b586cdc44c004dda2b0e56" name="ac5446234f9b586cdc44c004dda2b0e56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5446234f9b586cdc44c004dda2b0e56">&#9670;&nbsp;</a></span>readOfm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char readOfm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fileCompound</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a25920ff259a61a23d0067b6007020a08" name="a25920ff259a61a23d0067b6007020a08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25920ff259a61a23d0067b6007020a08">&#9670;&nbsp;</a></span>writeOfm()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char writeOfm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="embroidery_8h.html#a168c2ed6c7e17dd1aa7755aabc1db314">EmbPattern</a> *&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_dc9e1e299a0b26f222fe6c0a872463f0.html">extern</a></li><li class="navelem"><a class="el" href="dir_6a8aa8af2875e58e82a0145491f7a8e2.html">libembroidery</a></li><li class="navelem"><a class="el" href="dir_50a7dc5dba8160ac8332d90912e622db.html">src</a></li><li class="navelem"><a class="el" href="dir_7d0e9abc6dadcd976ab885d9ba0d632b.html">formats</a></li><li class="navelem"><a class="el" href="format__ofm_8c.html">format_ofm.c</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
